package net.googlecode.exigenlab.Task3.workers;

/**
 * Creator of Employee worker
 *
 * @author Vitalii Myshenko <a href="mailto:vitalii.myshenko@gmail.com">
 *
 *  @since 29.03.11
 */
public class Employee extends Person {

    private int experience; //worker experience

    /**
     * Constructor creates instance of class <code>Employee</code>
     *
     * @param firstName  first name of boss
     * @param lastName   last name of boss
     */
    public Employee(String firstName, String lastName) {
        super(firstName, lastName);
        this.setPosition("Employee");
    }

    /**
     * Set worker's experience
     *
     * @param experience value of experience
     */
    public void setExperience(int experience) {
        experience = experience;
    }

    /**
     * Get worker's experience
     *
     * @return value of experience
     */
    public int getExperience() {
        return experience;
    }


}
